<%--
  Created by IntelliJ IDEA.
  User: 米兰的小铁匠
  Date: 2020/5/28
  Time: 14:39
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" type="text/css" href="css/Iframe.css" />
    <link rel="stylesheet" href="utilLib/bootstrap.min.css" type="text/css" media="screen" />
</head>
<body>
<span class="cp_title">新闻管理</span>
<div class="add_cp">
    <a href="http://localhost:8080/login_war_exploded/AddNews.jsp">+添加新闻</a>
    <a href="http://localhost:8080/login_war_exploded/NewsServlet">显示新闻前台</a>
</div>
<div class="table_con">
    <table>
        <tr class="tb_title">
            <td width="4%">ID</td>
            <td width="10%">分类</td>
            <td width="50%">标题</td>
<%--            <td width="34%">内容</td>--%>
            <td width="10%">作者</td>
            <td width="10%">时间</td>
            <td width="15%">操作</td>
        </tr>
        <c:forEach var="news" items="${lstNews}" >
            <tr>
                <td width="4%">${news.newsID}</td>
                <td width="10%">${news.category}</td>
                <td width="50%">${news.title}</td>
<%--                <td width="34%">${news.newsContent} </td>--%>
                <td width="10%">${news.author}</td>
                <td width="10%">${news.newsDate}</td>
                <td width="15%">
                    <a href="EditNewsServlet?newid=${news.newsID}" class="bj_btn">编辑</a>
                    <a href="ShowNewsServlet?newid=${news.newsID}" class="sj_btn">查看</a>
                    <a href="DeleteNewsServlet?newid=${news.newsID}" class="del_btn">删除</a>
                </td>
            </tr>
        </c:forEach>
    </table>
    <div class="logo-img">
      <img src="img/scimg.png">
    </div>
</div>
</body>
<style>
    .logo-img{
        width: 150px;
        height: 150px;
        float: right;
    }
    .logo-img img{
        width: 150px;
        height: 150px;
    }
</style>
</html>
